import request from '@/utils/request'

const report = {
  // list(params){
  //   return request.get("/bzh/localStandard/reportList",{params})
  // },
  // myList(params){
  //   return request.get("/bzh/localStandard/myReportList",{params})
  // },
  // detail(id){
  //   return request.get(`/bzh/reportTrial/detail/${id}`)
  // },
  // add(data){
  //   return request.post("/bzh/reportTrial/add",data)
  // },
  // update(data){
  //   return request.post("/bzh/reportTrial/update",data)
  // },
  // submit(data){
  //   return request.post("/bzh/reportTrial/submit",data)
  // },
  // // 根据id获取所有报审审批记录
  // getByBusinessId(reportTrialId) {
  //   return request.get(`/bzh/approve/getByBusinessId/${reportTrialId}`);
  // },
  getByLocalId(id){
    return request.get(`/bzh/reportTrial/getByLocalId/${id}`);
  },
  list(params){
    return request.get("/bzh/standard/reportList",{params})
  },
  myList(params){
    return request.get("/bzh/standard/myReportList",{params})
  },
  detail(id){
    return request.get(`/bzh/reportTrial/detail/${id}`)
  },
  add(data){
    return request.post("/bzh/reportTrial/add",data)
  },
  update(data){
    return request.post("/bzh/reportTrial/update",data)
  },
  updateBase(data){
    return request.post("/bzh/reportTrial/updateBase",data)
  },
  submit(data){
    return request.post("/bzh/reportTrial/submit",data)
  },
  getBySuggestId(id){
    return request.get(`/bzh/reportTrial/getByLocalId/${id}`);
  },
  createPdfByWindows(id){
    return request.post(`/bzh/reportTrial/createPdfByWindows/${id}`);
  },
}
export default report
